home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 41 / PC Gamer IT CD 41 2-2.iso / utility / CISEI / 8BIT / CSEI.DXR / 00002_MD TASTI.ls < prev    next >
Encoding:
Text File  |  1998-10-06  |  460 b   |  27 lines

  1. on mouseDown
  2.   global MatTasti, NumTasto, LastNumTasto
  3.   if NumTasto = 0 then
  4.     exit
  5.   end if
  6.   set tasto to getAt(MatTasti, NumTasto)
  7.   abbassa(tasto)
  8. end
  9.  
  10. on mouseUp
  11.   global MatTasti, LastNumTasto
  12.   if the doubleClick then
  13.     exit
  14.   end if
  15.   startTimer()
  16.   repeat while the timer < 15
  17.     if the mouseDown then
  18.       exit
  19.     end if
  20.   end repeat
  21.   if LastNumTasto = 0 then
  22.     exit
  23.   end if
  24.   set tasto to getAt(MatTasti, LastNumTasto)
  25.   alza(tasto)
  26. end
  27.